jQuery(function($){
	//tooltip
	$(document).tooltip();
	//tabs
	$("#tabs").tabs();
	//自动完成
	
	var availableTags = [
        "ActionScript",
        "AppleScript",
        "Asp",
        "BASIC",
        "C",
        "C++",
        "Clojure",
        "COBOL",
        "ColdFusion",
        "Erlang",
        "Fortran",
        "Groovy",
        "Haskell",
        "Java",
        "JavaScript",
        "Lisp",
        "Perl",
        "PHP",
        "Python",
        "Ruby",
        "Scala",
        "Scheme"
    ];
	$(".autoComplete").autocomplete({  
		source: function( request, response ) {  
		    $.ajax({  
		        type:"post",  
		        url: "data.action",  
		        dataType: "json",  
		        success: function( data ) {  
		            response( $.map( data, function( result ) {  
		                return result
		            }));  
		        }  
		    });  
		},
		minLength: 1
	}); 
});